home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 April
/
EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso
/
EARCD
/
comm
/
thor
/
thor24arexx.lha
/
Edge
/
Style.edge
< prev
next >
Wrap
Text File
|
1996-11-11
|
715b
|
40 lines
/* Style.edge
** $VER: Style.edge 1.1 (27.12.96)
** Original script by Troels Walsted Hansen
** Purpose: Apply style to word.
**
*/
options results
parse arg stylechar
/* needs Edge functions */
p = address() || ' ' || show('P',,)
portname = pos('EDGE',p)
if portname > 0 then portname = word(substr(p,portname),1)
else
do
say 'No Edge port found!'
exit 10
end
address(portname)
RequestString TITLE '"0-Bold 1-Italic 2-Reverse 3-Underline"'
select
when(result = 0) then stylechar = '*'
when(result = 1) then stylechar = '/'
when(result = 2) then stylechar = '#'
when(result = 3) then stylechar = '_'
otherwise exit
end
Previous WORD
'TEXT' stylechar
'Position' EOW
'Cursor' RIGHT 1
TEXT stylechar